Keyframe
data class Keyframe(val time: Float, val value: KeyframeValue, val easing: KeyframeEasing = KeyframeEasing.Preset(), val spatialOut: Vector2? = null, val spatialIn: Vector2? = null)
One keyframe of a property track. Experimental: this API may change in a minor release.
Constructors
Link copied to clipboard
constructor(time: Float, value: KeyframeValue, easing: KeyframeEasing = KeyframeEasing.Preset(), spatialOut: Vector2? = null, spatialIn: Vector2? = null)
Properties
Link copied to clipboard
The curve from this keyframe to the next.
Link copied to clipboard
The motion path tangent that enters the next keyframe's value, relative to that value. It sits on this keyframe, like spatialOut, so the last keyframe does not use it. Only keyframes with a KeyframeValue.Vec2 value accept it.
Link copied to clipboard
The motion path tangent that leaves this keyframe's value, relative to it. Only keyframes with a KeyframeValue.Vec2 value accept it.
Link copied to clipboard
The value of the property at time.